from django.db import models

# Create your models here.


class Entry(models.Model):
	class Admin:
		pass

	name = models.CharField(max_length=200)
	content = models.CharField(max_length=2000)
	creation_date = models.DateTimeField()

	def __unicode__(self):
		return self.name


class Comment(models.Model):
	class Admin:
		pass

	entry = models.ForeignKey(Entry)
	content = models.CharField(max_length=200)

	def __unicode__(self):
		return self.content






